package edu.wpi.first.wpilibj.templates;

/**
 * The RobotMap is a mapping from the ports sensors and actuators are wired into
 * to a variable name. This provides flexibility changing wiring, makes checking
 * the wiring easier and significantly reduces the number of magic numbers
 * floating around.
 */


public class RobotMap {
    
    //--USB
        //Joystick Constants
        public static final int JOYSTICK_1 = 1;
        public static final int JOYSTICK_2 = 2;
    
    
    //--PWM (SLOTS ON DIGITAL SIDECAR)
        //!!NOTE: SLOT 2 ON THE BREADBOARD IS BURNT-OUT ON TEST BOARD    
        
        //Chassis (DRIVE-TRAIN)            
        public static final int REAR_RIGHTMOTOR_PWM = 1;
        public static final int REAR_LEFTMOTOR_PWM = 2;
        public static final int FRONT_LEFTMOTOR_PWM = 3;
        public static final int FRONT_RIGHTMOTOR_PWM = 4;

        //Motorized Catapult()
        public static final int PRIMARY_MOTOR_PWM = 9;
        public static final int SECONDARY_MOTOR_PWM = 10; 
        public static final int CATAPULT_ENCODER_PORTA_DIO = 9;
        public static final int CATAPULT_ENCODER_PORTB_DIO = 10;

        //Feeder
        public static final int RIGHT_SERVO_PWM = 7;
        public static final int LEFT_SERVO_PWM = 8;
        public static final int FEEDER_SPIKE_RELAY = 4;
            
        //Camera Constants
        public static final int XCAMSERVO_PWM = 5;
        public static final int YCAMSERVO_PWM = 1;//ON SECOND SIDECAR
        public static final int SIDECAR_SLOT2 = 2;

        public static final String CAMIP = "10.6.14.11";
    
    //--DIO
            
        //PNEUMATICS (USING MECHINACAL SHOOTER)           
        public static final int COMPRESSOR_SPIKE_RELAY = 2;
        public static final int PISTON_SPIKE_RELAY = 3;
        public static final int PRESSURE_SWITCH_DIO = 14;
        
        //(DRIVE-ENCODERS)   
        public static final int FRONT_LEFT_ENCODER_PORTA_DIO = 1;
        public static final int FRONT_LEFTT_ENCODER_PORTB_DIO = 2;
        public static final int FRONT_RIGHT_ENCODER_PORTA_DIO = 3;
        public static final int FRONT_RIGHT_ENCODER_PORTB_DIO = 4;
        public static final int REAR_LEFT_ENCODER_PORTA_DIO = 5;
        public static final int REAR_LEFT_ENCODER_PORTB_DIO = 6;
        public static final int REAR_RIGHT_ENCODER_PORTA_DIO = 7;
        public static final int REAR_RIGHT_ENCODER_PORTB_DIO = 8;
            
       
    
    //--ANALOUGE CHANNEL
        
        //Rangefinder Constants
        public static final int RANGEFINDER_AC = 2;
        
        //Gyroscope Constants
        public static final int GYRO_AC = 1;
}
